var point = argument1;
var anchor = argument2;
var theta = argument3;
var result = 0;

point[0] -= anchor[0];
point[1] -= anchor[1];

result[0] = cos(theta) * point[0] - sin(theta) * point[1];
result[1] = sin(theta) * point[0] + cos(theta) * point[1];

result[0] += anchor[0];
result[1] += anchor[1];

return result;


